package top.lgd.pojo.entity.operation;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import top.lgd.base.LgdEntity;

import javax.validation.constraints.Size;
import java.math.BigDecimal;

/**
 * 经营会员表
 *
 * @author YYJ
 * @version 1.0
 * @since 2024/5/6 14:42
 */
@Getter
@Setter
@TableName("operation_member")
public class Member extends LgdEntity {

    private static final long serialVersionUID = 8533295358480025562L;

    /**
     * 手机号
     * Index
     */
    @Size(max = 16)
    private String mobile;

    /**
     * 姓氏
     */
    @Size(max = 8)
    private String firstName;

    /**
     * 名字
     */
    @Size(max = 8)
    private String lastName;

    /**
     * 性别（M：男；F：女）
     */
    @Size(max = 1)
    private String gender;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 总充值
     */
    private BigDecimal inAmount;

    /**
     * 总消费
     */
    private BigDecimal outAmount;

    /**
     * 当前余额
     */
    private BigDecimal balance;
}